#pragma once

#include "regs.h"
#include "errors.h"
#include <iostream>
#include <cstdlib>
#include <cstring>

struct Command
{
	byte opcode;
	byte treg, sreg1, sreg2;
	byte imm1, imm2;
	word imm3;
};

Command loader();
void selector(Command opcode);
void special(Command opcode);
void calculator(Command opcode);
void memop(Command opcode);